<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<%@ page language="java" contentType="text/html; charset=UTF-8" %>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />

	<title>ログイン</title>
	<style type="text/css">
		body{background-color:#8FBC8F;}
		.center{text-align:center;
		}
		h1{margin-top:60px;
		width:30%;
		background-color:#00BFFF;}
	</style>

<script type="text/javascript">
  function gotoUserReg(form) {
	  form.action = "gotoUserReg.do";
      form.submit();
  }
</script>

</head>
<body>
	<div class="center">
	<h1>商品管理システム(仮)</h1>
	</div>
	<br><br><br>
	<center>
	<html:form method="POST" action="/login.do">
		<table>
			<tr>
				<td>ログイン　ID</td>
				<td>
					<html:text property="rid" size="30" />
				</td>
			</tr>
			<tr>
				<td>パスワード</td>
				<td>
					<html:password property="pwd" size="30" />
				</td>
			</tr>
		</table>
		<br><br>
		<html:submit property="roguin" value="ログイン" />
		<html:submit property="register" value="ユーザー登録" onclick="gotoUserReg(this.form)"/>
	</html:form>
	</center>
	</div>
</body>
</html>